package com.util;

/**
 * @Author zhaox
 * @Date 22/1/12
 */
public class Test {
    public static void main(String[] args) {



        long start = System.nanoTime();

        for(int i=0;i<Integer.MAX_VALUE;i++){
            int a=2;
            int b=8;
            int sum=0;
            sum = a * b;
        }
        long end = System.nanoTime();
        System.out.println(end - start);

        long start1 = System.nanoTime();
        for(int i=0;i<Integer.MAX_VALUE;i++){
            int a=2;
            int b=8;
            int sum=0;
            sum = 2<<3;
        }
        long end1 = System.nanoTime();
        System.out.println(end1 - start1);



    }
}
